<template>
    <div class="app-container">
        <div style="text-align:center; margin-top: 20px;font-weight: bold;font-size: 26px; margin-bottom: 20px">奇辰Open-API</div>
        <FastEntry />
        <el-row>
            <el-col :span="12" style="padding-right: 10px">
				<ContactsTag />
            </el-col>
            <el-col :span="12" style="padding-left: 10px">
				<OSInfo />
            </el-col>
        </el-row>
    </div>
</template>

<script>
import FastEntry from '@/app/components/FastEntry'
import ContactsTag from '@/platform/components/contacts/Tag'
import OSInfo from '@/platform/components/os/Info'
import { mapGetters } from 'vuex'

export default {
    name: 'Dashboard',
    components: { FastEntry, ContactsTag, OSInfo },
    data() {
        return {
            currentRole: 'adminDashboard'
        }
    },
    computed: {
        ...mapGetters([
            'roles'
        ])
    },
    created() {
        if (!this.roles.includes('admin')) {
            this.currentRole = 'editorDashboard'
        }
    }
}
</script>
